// ext_cleaner.cpp : Defines the entry point for the console application.
//

#include "ExtCleaner.h"

using namespace std;
using namespace Poco;

int main(int argc, char* argv[])
{
    //string path_str = "C:\\develop\\tools\\VCF-0.9.8\\build\\vc80";
    //string path_str = "C:\\develop\\tools\\VCF-0.9.8\\examples\\_nothing_";
    //string path_str = "C:\\develop\\tools\\VCF-0.9.8";
    string path_str = "C:\\develop";

    try {
        ExtCleaner cleaner(path_str);
        
        cleaner.addExt("obj");
        //cleaner.addExt("dep");
        //cleaner.addExt("manifest");
        cleaner.addExt("pch");
        cleaner.addExt("idb");
        //cleaner.addExt("rsp");
        cleaner.addExt("pdb");
        cleaner.addExt("ilk");

        cleaner.doRemove();
        cout << "The number of files removed: " << cleaner.getDeleted() << endl;
    } catch(...) {
        cout << "Make sure the path is correct! Exiting!" << endl;
    }

	return 0;
}
